<?php
class CommentFormWidget extends CWidget
{
    public $id = null;
    
    public $view = 'theme/light/form';
    
    public $model = null;
    
    public $controller = null;
    
    public $action = null;
    
    public function init()
    {        
        
        $this->model = new Comment();
        
    }
    
    public function run()
    {
        $this->init();        
        
        $this->render($this->view, array(
            'id'=>$this->id,
            'model'=>$this->model ,
            'controller'=>$this->controller,
            'action'=>$this->action  
        ));
        
    }
    
}
?>